package com.wzy.orderSystem;

import com.wzy.orderSystem.controller.*;

import java.sql.SQLException;
import java.util.Date;

public class FoodApplication {
    public static void main(String[] args) throws SQLException {

//        管理员表
//        adminController.insert(3,"dyx","dyx123",new Date(),"呆呆","https://tse3-mm.cn.bing.net/th/id/OIP-C.vd_orc6Tki6zvD84T9h3XQAAAA?w=186&h=186&c=7&r=0&o=5&dpr=1.35&pid=1.7","1212Thu Sep 16 21:43:50 CST 2021");
//        adminController.selectById(3);
//        adminController.updateById(3,"wwwzzz");
//        adminController.deleteById(3);

//        菜品表
//        foodDetailController.insertFood(5, "红烧狮子头", 4, "红烧狮子头，颜色红润，寓意着富贵团圆，味道浓郁！", "肉类", 20, "https://st-cn.meishij.net/r/86/63/1640836/s1640836_151543003415109.jpg");
//        foodDetailController.selectByName(5);
//        foodDetailController.updateByName("红烧狮子头",3);
//        foodDetailController.deleteByName("红烧狮子头");

//        角色表
//        roleController.insert(4,"已注销用户");
//        roleController.selectById(4);
//        roleController.updateById(4,"未注销");
//        roleController.deleteById(4);

//        订单表
//        orderController.insert(2,3,"谢梦梦",33333332,"回锅肉+香喷喷大米饭",1,"老板 多加点辣椒！",new Date(),"马鞍山学院9栋","15","已送达");
//        orderController.selectById(1);
//        orderController.updateById(2,"未签收");
//        orderController.deleteById(2);

//        用户表
//        userController.insert(3,"张萌萌","zxm123456","123456789","手艺涩费萌","未注销",new Date(),new Date(),"安徽省宿州市桶桥区");
//        userController.selectById(3);
//        userController.updateById(3,"zxm111111111");
//        userController.deleteById(3);

    }
}
